import request from "@/utils/request";

//获取医院详情的方法
export const reqHospitalDetail = (hoscode) => {
  return request.get("/hosp/hospital/" + hoscode);
};
// 获取医院科室展示
export const reqHospitalDepartment = (hoscode) => {
  return request.get("/hosp/hospital/department/" + hoscode);
};
// 获取验证码
export const reqCode = (phone) => {
  return request.get("/sms/send/" + phone);
};
// 用户登录接口
export const reqUserLogin = (data) => {
  return request.post("/user/login", data);
};
// 微信扫码登录
export const reqWxLogin = (wxRedirectUri) => {
  return request.get(
    "/user/weixin/getLoginParam/" + `?wxRedirectUri=${wxRedirectUri}`
  );
};
// 获取某一家医院的某个科室的预约挂号数据
export const reqHospitalWork = (page, limit, hosode, depcode) => {
  return request.get(
    "/hosp/hospital/auth/getBookingScheduleRule/" +
      `${page}/${limit}/${hosode}/${depcode}`
  );
};
// 获取医生挂号信息
export const reqHospitalDoctor = (hoscode, decode, workDate) => {
  return request.get(
    "/hosp/hospital/auth/findScheduleList/" + `${hoscode}/${decode}/${workDate}`
  );
};
// 获取医生信息
export const reqDoctorInfo = (docId) => {
  return request.get("/hosp/hospital/getSchedule/" + `${docId}`);
};
// 获取一个账号所有挂号用户信息
export const reqGetUser = () => {
  return request.get("/user/patient/auth/findAll");
};
